<script>
	export default {
		onLaunch: function() {
			console.log('App Launch')
			// 设置全局基础URL
			this.$baseUrl = 'http://localhost:8080';
			// 设置WebSocket URL
			this.$websocketUrl = 'ws://localhost:8080/websocket';
			// 将baseUrl挂载到Vue实例，使其在所有页面可用
			uni.$baseUrl = this.$baseUrl;
			uni.$websocketUrl = this.$websocketUrl;
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style>
	/*每个页面公共css */
</style>
